package com.ruoyi.profession.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.profession.mapper.ProfessionalTitleMapper;
import com.ruoyi.profession.domain.ProfessionalTitle;
import com.ruoyi.profession.service.IProfessionalTitleService;

/**
 * 职称证书信息Service业务层处理
 * 
 * @author 职称管理系统
 * @date 2024-06-02
 */
@Service
public class ProfessionalTitleServiceImpl implements IProfessionalTitleService 
{
    @Autowired
    private ProfessionalTitleMapper professionalTitleMapper;

    /**
     * 查询职称证书信息
     * 
     * @param id 职称证书信息主键
     * @return 职称证书信息
     */
    @Override
    public ProfessionalTitle selectProfessionalTitleById(Long id)
    {
        return professionalTitleMapper.selectProfessionalTitleById(id);
    }

    /**
     * 查询职称证书信息列表
     * 
     * @param professionalTitle 职称证书信息
     * @return 职称证书信息
     */
    @Override
    public List<ProfessionalTitle> selectProfessionalTitleList(ProfessionalTitle professionalTitle)
    {
        return professionalTitleMapper.selectProfessionalTitleList(professionalTitle);
    }

    /**
     * 新增职称证书信息
     * 
     * @param professionalTitle 职称证书信息
     * @return 结果
     */
    @Override
    public int insertProfessionalTitle(ProfessionalTitle professionalTitle)
    {
        return professionalTitleMapper.insertProfessionalTitle(professionalTitle);
    }

    /**
     * 修改职称证书信息
     * 
     * @param professionalTitle 职称证书信息
     * @return 结果
     */
    @Override
    public int updateProfessionalTitle(ProfessionalTitle professionalTitle)
    {
        return professionalTitleMapper.updateProfessionalTitle(professionalTitle);
    }

    /**
     * 批量删除职称证书信息
     * 
     * @param ids 需要删除的职称证书信息主键
     * @return 结果
     */
    @Override
    public int deleteProfessionalTitleByIds(Long[] ids)
    {
        return professionalTitleMapper.deleteProfessionalTitleByIds(ids);
    }

    /**
     * 删除职称证书信息信息
     * 
     * @param id 职称证书信息主键
     * @return 结果
     */
    @Override
    public int deleteProfessionalTitleById(Long id)
    {
        return professionalTitleMapper.deleteProfessionalTitleById(id);
    }
}
